package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProjectMapper;
import com.ruoyi.project.domain.Project;
import com.ruoyi.project.service.IProjectService;

/**
 * projectService业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Service
public class ProjectServiceImpl implements IProjectService 
{
    @Autowired
    private ProjectMapper projectMapper;

    /**
     * 查询project
     * 
     * @param ProjectId project主键
     * @return project
     */
    @Override
    public Project selectProjectByProjectId(Long ProjectId)
    {
        return projectMapper.selectProjectByProjectId(ProjectId);
    }

    /**
     * 查询project列表
     * 
     * @param project project
     * @return project
     */
    @Override
    public List<Project> selectProjectList(Project project)
    {
        return projectMapper.selectProjectList(project);
    }

    /**
     * 新增project
     * 
     * @param project project
     * @return 结果
     */
    @Override
    public int insertProject(Project project)
    {
        return projectMapper.insertProject(project);
    }

    /**
     * 修改project
     * 
     * @param project project
     * @return 结果
     */
    @Override
    public int updateProject(Project project)
    {
        return projectMapper.updateProject(project);
    }

    /**
     * 批量删除project
     * 
     * @param ProjectIds 需要删除的project主键
     * @return 结果
     */
    @Override
    public int deleteProjectByProjectIds(Long[] ProjectIds)
    {
        return projectMapper.deleteProjectByProjectIds(ProjectIds);
    }

    /**
     * 删除project信息
     * 
     * @param ProjectId project主键
     * @return 结果
     */
    @Override
    public int deleteProjectByProjectId(Long ProjectId)
    {
        return projectMapper.deleteProjectByProjectId(ProjectId);
    }
}
